package com.czy.server;

import com.czy.model.Request;
import com.czy.model.Response;

/**
 * @author czy
 * @date 2021-5-26 17:35
 */
public abstract class Servlet {
    public void service(Request req, Response rep) throws Exception{
        this.doGet( req, rep);
        this.doPost( req, rep);
    }
    public abstract void doGet(Request req,Response rep) throws Exception;
    public abstract void doPost(Request req,Response rep) throws Exception;
}
